{% extends 'layout.html' %}


{% block content %}

    <h3>业务线列表</h3>
    <a href="{% url 'web:business_unit_add' %}" class="btn btn-sm btn-primary"> 添加 </a>

    <table class="table table-hover">
        <thead>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>名称</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for business_unit in all_business_units %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ business_unit.pk }}</td>
                <td>{{ business_unit.name }}</td>
                <td>
                    <a href="{% url 'web:business_unit_edit' business_unit.pk %}"> <i class="fa fa-edit"></i> </a>
                    <a href=""> <i class="fa fa-trash-o"></i> </a>
                </td>
            </tr>
        {% endfor %}

        </tbody>

    </table>
{% endblock %}
